package dahuiji.common.dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class GetSessionFactory {
	public static Configuration cfg = new Configuration().configure();
	public static SessionFactory sessionFactoryf = cfg.buildSessionFactory();

	public static Session getSession() {
		return sessionFactoryf.openSession();
	}
	public GetSessionFactory(){
		
	}

}
